package DomainLayer;

public class Invoice
{
    private double totalPrice;
    private String assistant;
    private String customerName;
    private String customerAddress;
    private String productList;
    private int orderID;
    
    /**
     * 
     *@param totalPrice a total price of customer order.
     *@param assistant an assistant who sold goods for the customer.
     *@param customerName the customer's name.
     *@param customerAddress the customer's address.
     *@param productList a list of ordered materials.
     *@param orderID a number of order.
     */
    
    public Invoice(double totalPrice, String assistant, String customerName,
    String customerAddress, String productList, int orderID)
    {
       this.totalPrice=totalPrice;
       this.assistant=assistant;
       this.customerName=customerName;
       this.customerAddress=customerAddress;
       this.productList=productList;
       this.orderID=orderID;
    }
    
    public String getAssistant()
    {
        return assistant;
    }
    
    public String getCustomerName()
    {
        return customerName;
    }
    
    public String getCustomerAddress()
    {
        return customerAddress;
    }
    
    public String getProductList()
    {
        return productList;
    }
    
    public double getTotalPrice()
    {
        return totalPrice;
    }
    
    public int getOrderID()
    {
        return orderID;
    }
    
    //@return a string of invoice.
    public String toString()
    {
        String s="#############Invoice##############" +'\n' +
                 "Order`s ID: " +getOrderID() +'\n'+
                 "Sale made by: "+getAssistant() + '\n'+
                 "Sold to: " +getCustomerName() + '\n'+
                 "       Address: " +getCustomerAddress()+ '\n'+
                 getProductList() + '\n' +
                 "Total Price: " + getTotalPrice()+ '\n';
                              
                 
                 
                 return s;
                }
}